package org.example.game.weekly.game413;

/**
 * @Description: TODO
 * @Author wyatt
 * @Data 2024/08/03 20:45
 */
public class Solution001 {

    public static void main(String[] args) {
        System.out.println(new Solution001().checkTwoChessboards("h7", "c8"));
    }


    public boolean checkTwoChessboards(String coordinate1, String coordinate2) {
        if(((coordinate1.charAt(0) % 2 == coordinate2.charAt(0) % 2)
                && (coordinate1.charAt(1) % 2 == coordinate2.charAt(1) % 2))
            || ((coordinate1.charAt(0) % 2 != coordinate2.charAt(0) % 2)
                && (coordinate1.charAt(1) % 2 != coordinate2.charAt(1) % 2))){
            return true;
        }
        return false;
    }

}
